package com.hq.petmap.task;

import java.util.HashMap;

public class HQTaskResult {

	public enum HQTaskStatus {
		OK, FAILED, CANCELLED, IO_ERROR, AUTH_ERROR, NOT_FOLLOWED_ERROR
	};

	private HQTaskStatus satus;
	private HashMap<String, Object> results;

	public HQTaskResult() {
		this.satus = HQTaskStatus.FAILED;
		this.results = new HashMap<String, Object>();
	}

	public HQTaskStatus getSatus() {
		return satus;
	}

	public void setSatus(HQTaskStatus satus) {
		this.satus = satus;
	}

	public void putValue(String key, Object value) {
		results.put(key, value);
	}

	public Object getValue(String key) {
		return results.get(key);
	}
}
